package com.javaforever.dictionary.service;

import com.javaforever.dictionary.domain.DicGroup;
import java.util.List;

public interface DicGroupService{
	public List<DicGroup> listAllDicGroups() throws Exception;
	public boolean updateDicGroup(DicGroup dicGroup) throws Exception;
	public boolean deleteDicGroup(Long dicGroupId) throws Exception;
	public boolean addDicGroup(DicGroup dicGroup) throws Exception;
	public boolean softDeleteDicGroup(Long dicGroupId) throws Exception;
	public DicGroup findDicGroupByDicGroupId(Long dicGroupId) throws Exception;
	public DicGroup findDicGroupByDicGroupName(String dicGroupName) throws Exception;
	public List<DicGroup> searchDicGroupsByDicGroupName(String dicGroupName) throws Exception;
	public List<DicGroup> listActiveDicGroups() throws Exception;
	public List<DicGroup> listAllDicGroupsByPage(int pagesize,int pagenum) throws Exception;
	public void deleteAllDicGroups(String ids) throws Exception;
	public void softDeleteAllDicGroups(String ids) throws Exception;
	public Boolean toggleDicGroup(Long dicGroupId) throws Exception;
	public Boolean toggleOneDicGroup(Long dicGroupId) throws Exception;
	public List<DicGroup> searchDicGroupsByFieldsByPage(DicGroup dicGroup,Long pagenum,Long pagesize) throws Exception;
	public int countDicGroupsPage(int pagesize) throws Exception;
	public Long countActiveDicGroupRecords() throws Exception;
	public Long countAllDicGroupRecords() throws Exception;
	public Long countSearchDicGroupsByFieldsRecords(DicGroup dicGroup) throws Exception;
}
